
import java.util.Scanner;

public class contoh {
    
        
    public static void main(String[] args) {
        int bil1;
        int bil2;
        
        Scanner input=new Scanner(System.in);
        System.out.println("Masukkan bilangan 1 : ");
        bil1=input.nextInt();
        System.out.println("Masukkan bilangan 2: ");
        bil2=input.nextInt();
        System.out.println("---------------------------");
        
        System.out.println(bil1 +" x "+bil2+" = ");
        
        for(int a=1; a<=bil2; a++){
            if (a==1){
                System.out.print(bil1+" ");
            } else{
                System.out.print("+ "+bil1);
            }
        }
    }
}
